<?php
    $this->title = "Metaeventos";
    $this->headTitle($this->title);
?>

<div id="loading">
   <img src="<?php echo $this->baseUrl().'/images/loading.gif'; ?>" width="30px"/>
   <span style="position:relative; left:10px;">Carregando...</span>
</div>

<script type="text/javascript">

    function classificar(campo) {
        $('#loading').show();
        $.post('default/metaevento/ajax-index', {queryString: campo}, function(data){
            $('#div_index').html(data);
            $('#loading').fadeOut();
        });
    }
</script>

<h2>Metaeventos</h2>
<a class="linkBtn" href="<?php echo $this->url(array('module'=>'default','controller'=>'metaevento','action'=>'add'));?>">Adicionar metaevento</a>
<div id="div_index">
    <script>classificar('metaevento');</script>
</div>
